package cn.waqwb.service;

import cn.waqwb.entity.User;


/**
 * @author JokerQ
 * @date 2020/7/30 - 16:44
 */
public interface UserService {
    /**
     * 通过email查询用户
     * @param email
     * @return
     */
    public User getUserByEmail(String email);

    /**
     * 保存用户
     * @param user
     */
    public int saveUser(User user);

    /**
     * 通过邮箱和密码校验用户
     * @param email
     * @param password
     * @return
     */
    public User getUser(String email,String password);
}
